package net.bplaced.streetfighter.lib.service;

import java.util.ArrayList;
import java.util.List;

import net.bplaced.streetfighter.lib.model.GoalGetter;
import net.bplaced.streetfighter.lib.utils.ServiceReturnPackage;

import org.apache.http.NameValuePair;
import org.apache.http.client.methods.HttpPost;

/**
 * @author Sebastian Hoffmann <bo.hoffi@googlemail.com>
 */
public class GoalGetterServiceImpl
        extends CommonService<GoalGetter[]> {

    public ServiceReturnPackage<GoalGetter[]> loadGoalGetterViaPOST() {

        final HttpPost httppost = new HttpPost("http://streetfighter.bplaced.net/services/GoalGetterPostService.php");

        final List<NameValuePair> parameters = new ArrayList<NameValuePair>(1);

        return this.sendRequest(httppost, parameters, GoalGetter[].class);
    }
}